import 'package:flutter/widgets.dart';

class Test25 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 150,
      height: 150,
      child: Image.network(
        'http://pic1.win4000.com/pic/c/cf/cdc983699c.jpg',
        fit: BoxFit.cover,
        frameBuilder: (
          BuildContext context,
          Widget child,
          int frame,
          bool wasSynchronouslyLoaded,
        ) {
          if (frame == null) {
            return Image.asset(
              'assets/images/test1.png',
              width: 150,
              height: 150,
              fit: BoxFit.cover,
            );
          }
          return child;
        },
      ),
    );
  }
}
